﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Protegidos/Administracao/GENTE_Adm.master" AutoEventWireup="true" CodeFile="acLegalBeneficios.aspx.cs" Inherits="Protegidos_Administracao_Cadastros_acLegalBeneficios" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register TagPrefix="uc1" TagName="dtBenefVT"                Src="~/_includes/_beneficios/dtBenefVT.ascx" %>
<%@ Register TagPrefix="uc1" TagName="dtBenefAC"                Src="~/_includes/_beneficios/dtBenefAC.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphSubConteudo" Runat="Server">

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

    <script type="text/javascript">

        tipoRegra = 1;

        //Benefício: Vale Transporte
        function ShowInsertBenefVT() {
            return ShowInsertBeneficio(null, 'VT');
        }
        function ShowHistBenefVT() {
            return ShowHistoricoBeneficio(null, 'VT');
        }

        //Benefício: Auxílio Creche
        function ShowInsertBenefAC() {
            return ShowInsertBeneficio(null, 'AC');
        }
        function ShowHistBenefAC() {
            return ShowHistoricoBeneficio(null, 'AC');
        }

        function refreshGrid(arg) {
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("arg");
        }

    </script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>      
    <telerik:AjaxSetting AjaxControlID="RadPanelBar1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>                                                             
</AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" >
</telerik:RadAjaxLoadingPanel> 

<telerik:RadWindowManager ID="RadWindowManager2" runat="server">
    <Windows>
        <telerik:RadWindow  ID="RadWindow1" runat="server" Height="400px" Width="500px" ReloadOnShow="true" Modal="true"
            ShowContentDuringLoad="false" VisibleStatusbar="false" Behaviors="Close, Move, Resize, Maximize" />
    </Windows>
</telerik:RadWindowManager>

<table width="99%" align="center">
    
    <tr>
        <td>
            <div class="Titulo01">Benefícios</div>
            <div class="Titulo02">Cadastros / Gerais / Legal</div>
        </td>
    </tr>
    <tr>
        <td>
            
            <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="99%" Height="280px" ExpandMode="SingleExpandedItem" Skin="Telerik">
                <Items>
                    
                    <%-- INICIO - Vale Transporte --%>
                    <telerik:RadPanelItem Text="Vale Transporte">
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!--Benefício: Vale Transporte -->
                                    <uc1:dtBenefVT ID="dtBenefVT1" runat="server" />
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>                    
                    <%-- FIM - Vale Transporte --%>
                    
                    <%-- INICIO - Auxílio Creche --%>
                    <telerik:RadPanelItem Text="Auxílio Creche">
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                
                                    <!--Benefício: Auxílio Creche -->
                                    <uc1:dtBenefAC ID="dtBenefAC1" runat="server" />
                                
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%-- FIM - Auxílio Creche --%>
                    
                </Items>
            </telerik:RadPanelBar>
            
        </td>
    </tr>

</table>

</asp:Content>

